package server.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import server.business.pojo.BloodDiscardApply;

import java.util.ArrayList;

/**
* @author Galaxy
* @description 针对表【blood_discard_apply】的数据库操作Service
* @createDate 2022-11-08 12:46:23
*/
public interface BloodDiscardApplyService extends IService<BloodDiscardApply> {
    /**
     * 根据Id更改is_deleted
     *
     * @param Id
     * @param is_deleted
     */
    Boolean setisDeletedById(Integer Id, Integer is_deleted);

    //根据申请单号获取整个对象
    BloodDiscardApply findByApplyId(String ApplyId);

    //根据申请单号改变is_deleted
    Boolean setisDeletedByApplyId(String applyId,Integer is_deleted);

    //根据id列表获取申请单号
    ArrayList<String>   findDiscardApplyidById(ArrayList<Long> ids);

    //根据id列表获取血袋编号
    ArrayList<String>   findBloodIdList(ArrayList<Long> ids);

    //根据id获取申请单号
    String findSampleDiscardApplyidById(Integer id);
    //根据id获取血袋编号
    String findSampleBloodIdById(Integer id);

}
